package com.atguigu.gmall.user.client;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.user.client.impl.UserFeigClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient(value = "service-user",fallback = UserFeigClientImpl.class)
public interface UserFeigClient {

    @ApiOperation("根据用户id查询收货地址")
    @GetMapping("/api/user/passport/userAddressList")
    public List<UserAddress> userAddressList();

}
